const searchMix={
	data(){
		return{
			dataArray:[],
			total:0,
			loading:false
		}
	},
	methods:{
		setMoreData(dataArray){
			this.dataArray=this.dataArray.concat(dataArray)
		},
		getCurrentStart(){
			return this.dataArray.length
		},
		setTotal(total){
			this.total=total
		},
		hasMore(){
			if(this.dataArray.length>=this.total){
				return false
			}else{
				return true
			}
		},
		initialize(){
			this.dataArray=[]
			this.total=0
			this.loading=false
		},
		isLocked(){
			return this.loading?true:false
		},
		locked(){
			this.loading=true
		},
		unLocked(){
			this.loading=false
		}
	}


}
export {searchMix}